package com.maiji.cloud.service;

import com.maiji.cloud.entities.shopingmall.ShareOrderLog;
import com.baomidou.mybatisplus.service.IService;
import com.maiji.cloud.entities.shopingmall.ShareOrderRule;
import com.maiji.cloud.response.BaseDataResDto;
import com.maiji.cloud.response.BaseResDto;
import com.maiji.cloud.response.shopingmall.ShareOrderLogResData;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2019-09-16
 */
public interface ShareOrderLogService extends IService<ShareOrderLog> {

    BaseDataResDto<ShareOrderLogResData> ifCanShareOrder(String orderId, String userId);

    BaseDataResDto<ShareOrderLogResData> findShareOrderLogById(String orderId, String userId);

    BaseDataResDto<Double> statisticShareOrderHelp(String helpId);

    BaseDataResDto<ShareOrderRule> findShareOrderRule();

    BaseResDto updShareOrderRule(ShareOrderRule shareOrderRule);

    BaseDataResDto<List<ShareOrderRule>> findAllShareOrderRuleLogs(List<Date> updateDates);
}
